﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace bbdesktop7
{
  public  class MainActivityCode
    {
        public static bool  CheckParentRunning( string processName)
        {
            //process name
            // Get all instances of Notepad running on the local
            // computer.
            Process[] localByName = Process.GetProcessesByName(processName);

            if (localByName.Count()>0)
            {
                return true;
            }
            else
            {
               return false;
            }
               


            //MessageBox.Show(Process.GetCurrentProcess().ProcessName + ": " + localByName.Count().ToString());

        }

        public static int ThreadCount;
        public static bool IsClosing;

       
    }
}
